package com.hotagent.mxbean;

import com.hotagent.reload.Reloader;
import com.hotagent.reload.Result;

public class Reload implements ReloadMXBean {

    private Reloader reloader;

    public Reload(Reloader reloader) {
        this.reloader = reloader;
    }

    @Override
    public String reload() {
        Result result = reloader.reload();
        return result.getMsg();
    }
}
